package com.qst.crop.service;

import com.github.pagehelper.PageInfo;
import com.qst.crop.entity.Expert;
import com.qst.crop.entity.Question;

import java.util.List;

public interface QuestionService {

    //分页条件查询问答
    PageInfo<Question> selectByKeys(String keys, Integer pageNum);

    //根据id查询问答
    Question selectById(Integer id);

    //增加问答
    void insert(Question record);

    //查询个人问答
    List<Question> selectByQuestion(String type);

    //根据ID修改问答
    void updateById(Question record);

    //删除问答
    void delete(Integer id);

}
